package com.lwc.remote;


import com.lwc.bean.Dept;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

import java.util.Map;

@FeignClient("sc-system")
public interface DeptRemoteClient {


    @PostMapping("/dept")
     Map savedept(@RequestParam Map map);



    @PostMapping("/save1")
    String SAVE(@RequestBody Dept dept);


    @GetMapping("/dept/{id}")
    Dept querydept(@PathVariable("id") int id);

}

